<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>版本更新日志</title>
    <script src="./lib/axios.js"></script>
    <script src="./lib/media_750.js"></script>
</head>

<style>
    * {
        margin: 0;
        padding: 0;
    }

    .page {
        min-height: 100vh;
        font-size: .3rem;
        color: #333;
        word-wrap:break-word;
    }
    .content {
  padding: 0.3rem;
 
}
</style>

<body>

        <div class="page">
            <div class="content"></div>
        </div>
    <script>
        let mode
        const currentUrl = window.location.href
        GetRequest(currentUrl)
        var content = document.getElementsByClassName('content')[0];
        const setCon = JSON.parse(localStorage.getItem("setCon")) || "";
        content.innerHTML = setCon
        function GetRequest(urlStr) {
            if (typeof urlStr == "undefined") {
                var url = decodeURI(location.search); //获取url中"?"符后的字符串
            } else {
                var url = "?" + urlStr.split("?")[1];
            }
            var theRequest = new Object();
            if (url.indexOf("?") != -1) {
                var str = url.substr(1);
                strs = str.split("&");
                for (var i = 0; i < strs.length; i++) {
                    theRequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]);

                }
            }
            mode = theRequest.mode
        }
        if (mode == 'black') {
            var head = document.getElementsByTagName('HEAD').item(0);
            var style = document.createElement('link');
            style.href = './black.css';
            style.rel = 'stylesheet'
            style.type = 'text/css';
            head.appendChild(style);
            console.log('black');

        }

    </script>
</body>

</html>